<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <title>智能导诊-部门</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link href="/lobsteruiframe/layuiadmin/layui/css/layui.css" rel="stylesheet" />
    <link href="/lobsteruiframe/layuiadmin/style/admin.css" rel="stylesheet" />
    <script src="/lobsteruiframe/layuiadmin/layui/layui.js"></script>
    <script src="/jslib/lobster.js"></script>
    <script src="/jslib/jquery-3.4.1.min.js"></script>

    <script src="js/dept.js"></script>
</head>

<body>
    <div class="layui-fluid" style="background-color:white;padding:5px;">
        <div class="layui-card-header layui-form layuiadmin-card-header-auto" style="padding:5px 0 0 0;">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label" style="width:110px;">科室：</label>
                    <div class="layui-input-inline" style="width:160px;height:38px;">
                        <input type="text" class="layui-input" id="DeptName" name="DeptName"
                            style="width:160px;height:38px;" />
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label" style="width:110px;">启用状态：</label>
                    <div class="layui-input-inline" style="width:80px;">
                        <select id="delFlag" name="delFlag">
                            <option value="-1">全部</option>
                            <option value="0">启用</option>
                            <option value="1">停用</option>
                        </select>
                    </div>
                </div>
                <div class="layui-inline">
                    <button class="layui-btn layuiadmin-btn-useradmin" lay-submit lay-filter="query-submit">
                        <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>查询
                    </button>
                </div>
            </div>
        </div>
        <div class="layui-card-body">
            <table id="deptTable" lay-filter="deptTable"></table>
        </div>
    </div>

</body>

</html>
<script type="text/html" id="operation">
    <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="edit"><i class="layui-icon layui-icon-edit"></i>编辑</a>
    {{# if(d.DelFlag==0){ }}
    <a class="layui-btn layui-btn-danger layui-btn-xs"
        lay-event="enstatus"><i class="layui-icon layui-extend-stop"></i>停用</a>
    {{# } else { }}
    <a class="layui-btn layui-btn-normal layui-btn-xs"
        lay-event="enstatus"><i class="layui-icon layui-icon-ok"></i>启用</a>
    {{# } }}
    {{# if(flag){ }}
    <a class="layui-btn layui-btn-normal layui-btn-xs"
        lay-event="relation"><i class="layui-icon layui-icon-edit"></i>关联科室</a>
    {{# } }}
</script>
<script type="text/html" id="status">
    {{#if(d.DelFlag ==1) { }}
    <span style="color:orangered">已停用</span>
    {{# } else {}}
    <span style="color:cadetblue"> 已启用</span>
    {{# }}}
</script>
<script type="text/html" id="deptadd">
    <div class="layui-inline">
        <a class="layui-btn layui-btn-sm" lay-event="add" id="add"><i class="layui-icon layui-icon-add-1"></i>新增科室</a>
    </div>
</script>

<script id="openDept" type="text/html">
    <div class="layui-card-header layui-form" style="padding-top:10px;">
        <div class="layui-form-item">
            <label class="layui-form-label"><i style="color:red;">*&ensp; </i>科室</label>
            <div class="layui-input-block">
                <input type="text" id="deptName" name="deptName" class="layui-input" />
            </div>
        </div>
    </div>
</script>